#settingsPanel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 100;
  padding: 1rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

#settingsPanel:not(.hidden) {
  transform: translateY(0);
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.toolbar button {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toolbar button:hover {
  background: #f9fafb;
}

/* 保留必要的自定义样式 */
.message {
  position: relative;
  max-width: 80%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.user-message {
  background: #007bff;
  color: white;
  margin-left: auto;
}

.ai-message {
  background: #f1f3f4;
  color: #202124;
  margin-right: auto;
}

.timestamp {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}

.code-block {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  margin: 8px 0;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.message:hover .copy-btn {
  opacity: 1;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
